<template>
  <div class="header">
    <van-nav-bar
      :title="title"
      :left-text="backbtn"
      left-arrow
      @click-left="goback"
    />
  </div>
</template>

<script>
export default {
  data() {
    return {
      title: "标题",
      backbtn: "返回",
      redirect: "",
    };
  },
  computed: {},
  watch: {},

  methods: {
    goback() {
      this.$router.go(-1);
    },
    init(tittle, url) {
      this.title = tittle;
      this.redirect = url;
    },
  },
  created() {},
  mounted() {},
  components: {},
};
</script>
<style scoped></style>
